 export default {
  createPayType:{//创建支付类型
    url:'/shreypay/payType/create',
    require:['token','clientid','name']//data,code
  },
  deletePayType:{//删除支付类型
    url:'/shreypay/payType/delete',
    require:['token','clientid']//id或code
  },
  updatePayType:{//修改支付类型
    url:'/shreypay/payType/update',
    require:['token','clientid','id']//name,data,code
  },
  getPayType:{//获取支付类型
    url:'/shreypay/payType/get',
    require:['token','clientid']//id或code
  },
  getPayTypeList:{//获取支付类型列表
    url:'/shreypay/payType/list',
    require:['token','clientid']
  },
  createAccount:{//创建账户
    url:'/shreypay/merchant/create',
    require:['token','clientid']//code、configData(选，微信支付方式时：appId、mchId、mchKey、subAppId、subMchId参数必须)、departmentId/departmentCode、payTypeCode、subject(选)、amount(选)
  },
  deleteAccount:{//删除账户
    url:'/shreypay/merchant/delete',
    require:['token','clientid','id']
  },
  updateAccount:{//修改账户
    url:'/shreypay/merchant/update',
    require:['token','clientid','id']//、departmentCode(选)、payTypeCode(选)、configData(选)、enable(选)、subject(选)、code(选)
  },
  getAccount:{//获取账户
    url:'/shreypay/account/get',
    require:['token','clientid','code']
  },
  getAccountList:{//获取账户列表
    url:'/shreypay/merchant/list',
    require:['token','clientid']//'departmentId','payTypeId'
  },
  unitPay:{//合并支付
    url:'/shreypay/pay/unifiedOrder',
    require:['token','clientid','subject','tradeNo','payTypeCode']//detail,data,balanceMoney,authCode
  },
  delPay:{//删除支付
    url:'/shreypay/pay/delete',
    require:['token','clientid','id']
  },
  getPay:{//获取支付
    url:'/shreypay/pay/get',
    require:['token','clientid','id']
  },
  getPayList:{//获取支付列表
    url:'/shreypay/pay/list',
    require:['token','clientid']//departmentId
  },
  updatePay:{//更新支付
    url:'/shreypay/pay/update',
    require:['token','clientid','id']//data(选)、subject(选)、state(选)、payPrice(选)、discountPrice(选)、payTypeCode(选)
  },
  createPay:{//创建支付
    url:'/shreypay/pay/create',
    require:['token','clientid','subject','tradeNo','payTypeCode']//subject(主题，类型title)、detail(选，详情)、tradeNo(订单号，数组字符串)、data(选)
  },
  toPay:{//去支付
    url:'/shreypay/pay/toPay',
    require:['token','clientid','payNo']//payNo、balanceMoney(选)、authCode(选，刷卡支付授权码)
  }
}
